﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace _2._16._2015_Blog.Models
{
    public class BlogListViewModel
    {
        public int NumberOfBlogs { get; set; }
        public List<BlogViewModel> Blogs { get; set; }
    }

    public class BlogViewModel
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Text { get; set; }
        public DateTime DateCreated { get; set; }
        public List<CommentViewModel> Comments { get; set; }
        public string UserName { get; set; }
        public CreateCommentViewModel NewComment { get; set; }
    }

    public class CommentViewModel
    {
        public int BlogPostId { get; set; }
        public string Text { get; set; }
        public string UserName { get; set; }
        public DateTime DateCreated { get; set; }
    }

    public class CreateBlogViewModel
    {
        public string Title { get; set; }
        public string Text { get; set; }
        public string UserName { get; set; }
    }

    public class CreateCommentViewModel
    {
        public int BlogPostId { get; set; }
        public string Text { get; set; }
        public string UserName { get; set; }
    }
}